package com.exmple.dao.impl;


import com.exmple.dao.IUserDao;
import com.exmple.model.User;

public class UserDaoImpl implements IUserDao {
    UserDaoImpl(){
        System.out.println("UserDaoImpl被创建");
    }
    @Override
    public User getUserById(Integer id) {
        User user=new User();
        user.setUsername("李四");
        user.setId(id);
        System.out.println("一次查询");
        return user;
    }
}
